Hi! |
Re: Gui that calls another gui, and open several modules Module m = edit("FileName", false) // open the current module for reading/editing |
Re: Gui that calls another gui, and open several modules My code that edit's modules does this:
You invoke a Dialog from within another Dialog the same way as the original Dialog, the problem comes in when you try to get information from the sub onto the main. Since the job of the 2nd one is almost always to get more information for the 1st, I routinely "block" the 2nd one; which prevents interaction with the 1st one until the 2nd one closes. You could then have the "close" of the 2nd one either /[1] update the 1st dialog directly, or /[2] store the return value in a global variable and let the 1st dialog (after the "block") update itself. If the 2nd dialog is in some other file, yes it is difficult to "#include" it since it usually uses "global" variables that are no longer global when #included in a callback. -Louie |
Re: Gui that calls another gui, and open several modules llandale - Mon Jun 25 13:30:01 EDT 2012
You invoke a Dialog from within another Dialog the same way as the original Dialog, the problem comes in when you try to get information from the sub onto the main. Since the job of the 2nd one is almost always to get more information for the 1st, I routinely "block" the 2nd one; which prevents interaction with the 1st one until the 2nd one closes. You could then have the "close" of the 2nd one either /[1] update the 1st dialog directly, or /[2] store the return value in a global variable and let the 1st dialog (after the "block") update itself. If the 2nd dialog is in some other file, yes it is difficult to "#include" it since it usually uses "global" variables that are no longer global when #included in a callback. -Louie
If you want to to 'switch' to another dialog which is a completly separate application, then you can do from your callback:
...
release yourDialog // if you blocked it
// destroy yourDialog // do NEVER call destroy in a callback!
hide yourDialog // if you showed it
eval_ "#include <...your other dialog application...>"
halt
...
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|
Re: Gui that calls another gui, and open several modules Mathias Mamsch - Wed Jun 27 06:25:42 EDT 2012
If you want to to 'switch' to another dialog which is a completly separate application, then you can do from your callback:
...
release yourDialog // if you blocked it
// destroy yourDialog // do NEVER call destroy in a callback!
hide yourDialog // if you showed it
eval_ "#include <...your other dialog application...>"
halt
...
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
Did you guys known if this possible to call the BaselineSet function from a GUI? Anyway, thanks again for the help! |
Re: Gui that calls another gui, and open several modules Bruwbruw - Thu Jun 28 08:46:17 EDT 2012 Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS |